﻿using DevExpress.XtraEditors;
using System.Windows.Forms;

namespace Commons
{
    public static class ExtensionMethod
    {
		/// <summary>
		/// 显示询问用户信息，并显示错误标志
		/// </summary>
		/// <param name="message">错误信息</param>
		public static DialogResult ShowYesNoAndError(this string message)
		{
			return XtraMessageBox.Show((message), ("错误信息"), MessageBoxButtons.YesNo, MessageBoxIcon.Error);
		}
	}
}
